package arthas;

import org.apache.commons.compress.utils.Lists;

import java.util.List;

/**
 * @ClassName ArthasDemo
 * @Description
 * @Author Small
 * @Date 2020/9/18 17:12
 * @Version 1.0
 **/
public class ArthasDemo {


    public static void main(String[] args) {
        testOOM();
    }


    public static void testOOM() {
        List<String> list = Lists.newArrayList();
        for (int i = 0; i < 100000; i++) {
            String str = new String("2222222222222222222222222222222222222222222222");
            list.add(str);
        }
    }
}
